package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.User;
import com.ruoyi.system.mapper.UserMapper;
import com.ruoyi.system.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> selectAllUser()
    {
        return userMapper.selectAllUser();
    }

    //新增
    public void deleteName(String name){
        userMapper.deleteName(name);
    }

    public void updateUsers(int id,String name,int age,int sex){
        userMapper.updateUsers(id, name, age, sex);
    }

    public void insertUser(String name,int age,int sex){
        userMapper.insertUser(name, age, sex);
    }
}
